package cn.study.service.impl;

import cn.study.entity.StudyMenu;
import cn.study.entity.StudyRoleMenu;
import cn.study.mapper.StudyMenuMapper;
import cn.study.service.StudyMenuService;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.swagger.models.auth.In;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author qiao
 * @since 2020-07-20
 */
@Service
public class StudyMenuServiceImpl extends ServiceImpl<StudyMenuMapper, StudyMenu> implements StudyMenuService {
    @Autowired
    StudyMenuMapper studyMenuMapper;
    @Override
    public List<StudyMenu> studyRolelist(Integer roleId, Integer menuCategory) {

        return studyMenuMapper.studyRolelist(roleId,menuCategory);
    }

    @Override
    public List<StudyMenu> getlist() {
        return studyMenuMapper.getlist();
    }

    @Override
    public List<StudyMenu> getlist0() {
        return studyMenuMapper.getlist0();
    }

    @Override
    public List<StudyMenu> getlist1() {
        return studyMenuMapper.getlist1();
    }


}
